﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DB
{
    public class DbContexts : DatabaseContext
    {
        public DbContexts():base("name=dist")
        { }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<user>().ToTable("user");
            modelBuilder.Entity<score>().ToTable("score");
        }
        public DbSet<user> User { get; set; }
        public DbSet<score> Score { get; set; }
    }
}
